package org.jeecg.modules.third.jg.report.information.dto;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.modules.third.jg.report.information.dto.enterprise.EnterpriseDTO;
import org.jeecg.modules.third.jg.report.information.dto.financial.FinancialDTO;
import org.jeecg.modules.third.jg.report.information.dto.shippingnote.ShippingNoteDTO;
import org.jeecg.modules.third.jg.report.information.dto.vehiclelocation.VehicleLocationDTO;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "Root")
public class ReqHeaderDTO<T> {

    @XmlElement(name = "Body")
    private DriverDTO driver;

    @XmlElement(name = "Body")
    private VehicleDTO vehicle;

    @XmlElement(name = "Body")
    private EnterpriseDTO enterprise;

    @XmlElement(name = "Body")
    private FinancialDTO financial;

    @XmlElement(name = "Body")
    private ShippingNoteDTO shippingNote;

    @XmlElement(name = "Body")
    private VehicleLocationDTO vehicleLocation;

}
